package router

import (
	"context"

	"github.com/gogf/gf/v2/net/ghttp"
	"github.com/tiger1103/gfast/v3/internal/wxAppApi/controller"
)

func (router *Router) BindAppUserController(ctx context.Context, group *ghttp.RouterGroup) {
	group.Group("/user", func(group *ghttp.RouterGroup) {
		group.Bind(
			controller.UserController,
		)
	})
	group.Group("/news", func(group *ghttp.RouterGroup) {
		group.Bind(
			controller.NewsController,
		)
	})
	group.Group("/newsCategory", func(group *ghttp.RouterGroup) {
		group.Bind(
			controller.NewsCategoryController,
		)
	})
	group.Group("/nav", func(group *ghttp.RouterGroup) {
		group.Bind(
			controller.NavController,
		)
	})
}
